import api from '@server/api';

/** 海报列表
 * @param {object} params
 * @returns object
 */
export default async function _readThreadPoster(opts) {
  // 2021-07-28 后台接口字段调整，将scope替换sequence
  if (opts?.params) {
    const keys = Object.keys(opts.params);
    if (keys.indexOf('sequence') !== -1) {
      opts.params.scope = opts.params.sequence;

      delete opts.params.sequence;
    }
  }
  const res = await api.http({
    url: '/api/v3/thread.poster',
    method: 'get',
    params: opts.params,
  });
  return res;
}

